﻿<app:SpottedPageBase 
    x:Class="Spotted.Views.AddLocationView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:app="clr-namespace:Spotted.Core"
    xmlns:cal="http://www.caliburnproject.org"
    xmlns:tk="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:uc="clr-namespace:Spotted.Controls" SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="696" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot">
        <StackPanel Orientation="Vertical" Margin="10">
            <TextBlock Text="add a spot"
                       Style="{StaticResource SpottedTitle}"
                       Margin="0,0,0,20" />

            <TextBlock Text="name" Foreground="{StaticResource SpottedSecondaryColorBrush}"
                       FontSize="{StaticResource PhoneFontSizeNormal}" />
            <TextBox Name="SpotName" Style="{StaticResource SpottedTextBox}"
                     Margin="0,0,0,10" />
            
            <TextBlock Text="description" Foreground="{StaticResource SpottedSecondaryColorBrush}"
                       FontSize="{StaticResource PhoneFontSizeNormal}" />
            <TextBox Name="SpotDescription" Style="{StaticResource SpottedTextBox}" Height="120"
                     AcceptsReturn="True" TextWrapping="Wrap" Margin="0,0,0,10" />

            <TextBlock Text="i want to ..." Foreground="{StaticResource SpottedSecondaryColorBrush}"
                       FontSize="{StaticResource PhoneFontSizeNormal}" />
            <tk:ListPicker ExpansionMode="ExpansionAllowed" Margin="0" x:Name="SpotIntention"
                           ItemsSource="{Binding SpotIntentions}" />
            
            <uc:SpottedImage x:Name="SpotPicture" HorizontalAlignment="Center"
                             VerticalAlignment="Center" Stretch="Fill" />

        </StackPanel>
    </Grid>
 
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <cal:AppBarButton IconUri="/Assets/Icons/appbar.save.png"
                              Text="save" Message="SavePlace" />
            <cal:AppBarButton IconUri="/Assets/Icons/appbar.camera.png"
                              Text="add picture" Message="AddPicture" />
            <cal:AppBarButton IconUri="/Assets/Icons/appbar.close.png"
                              Text="cancel" Message="GoBack" />
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</app:SpottedPageBase>
